package com.groupbuying.customerconsumer.dao;

import com.groupbuying.customerconsumer.domain.CustomerWxinfoRelDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 微信登录信息关联表
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-05-13 15:27:47
 * @des
 */

@Mapper
@Repository
public interface CustomerWxinfoRelDao {

	CustomerWxinfoRelDO get(String customerId);
	
	List<CustomerWxinfoRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerWxinfoRelDO customerWxinfoRel);
	
	int update(CustomerWxinfoRelDO customerWxinfoRel);
	
	int remove(String customer_id);
	
	int batchRemove(String[] customerIds);


	/**
	 * @Author gxy
	 * @Description 根据openId获取会员微信第三方信息
	 * @Date 10:19 2019/7/15
	 * @Param [openId]
	 * @return int
	 **/

	CustomerWxinfoRelDO getByOpenId(String openId);
}
